|
Eclipse Platform Pre-release 3.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.team.core.subscribers.RemoteSynchronizer
A remote synchronizer provides API to access a handle for a resource resource associated with a local resource (that may or may not exist locally). API is also provided to trigger a refresh in order to cache the remote state for later retrieval.
Constructor Summary | |
RemoteSynchronizer()
|
Method Summary | |
abstract IRemoteResource |
getRemoteResource(IResource resource)
Return a remote resource handle created from the remote sync bytes associated with the local resource for this synchronizer. |
abstract boolean |
hasRemote(IResource resource)
Return whether the given resource has a corresponding remote resource that is known to exist (at the last point in time that a refresh was performed). |
abstract IResource[] |
refresh(IResource resource,
int depth,
boolean cacheFileContentsHint,
IProgressMonitor monitor)
Refreshes the contents of the resource synchronizer and returns the list of resources whose remote synchronization state changed since the last refresh. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public RemoteSynchronizer()
Method Detail |
public abstract IRemoteResource getRemoteResource(IResource resource) throws TeamException
resource
- the local resource
TeamException
public abstract boolean hasRemote(IResource resource) throws TeamException
resource
- the local resource handle
true
if a corrrespondin remote resource is know to exist
TeamException
public abstract IResource[] refresh(IResource resource, int depth, boolean cacheFileContentsHint, IProgressMonitor monitor) throws TeamException
cacheFileContentsHint
indicates that the user of this synchronizer
will be using the file contents. Subclasses can decide
whether to cache file contents during the refresh or to
allow them to be fetched when request.
resource
- the resource to refreshdepth
- the depth of the operationcacheFileContentsHint
- a hint which indicates whether file contents will be usedmonitor
- the progress monitor
TeamException
|
Eclipse Platform Pre-release 3.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |